Collection::Collect
Section: ET++ method description (n)
Updated: automatically Fri Mar 1 10:57:30 1991
Index
Return to Main Contents
NAME
Collection::Collect - instance method
TEMPLATE
aCollection = CollPtr
Collect(ObjPtrFun collectingFunction, void * functionArgument)
SPECIFIERS
public
virtual
DESCRIPTION
Returns a newly created collection of the same class as the receiver.
The returned collection has been added the return values of
collectionFunction as applied to each element of the receiver.
The order of elements is undefined except for SeqCollections. For
SeqCollections, the order of elements is determined by increasing
indices.
See also method Select and method Detect.
Method is never overridden.
ARGUMENTS
- ObjPtrFun collectingFunction
-
The arguments are:
(ObjPtr theReceiver, ObjPtr anElement, void *functionArgument).
The collectingFunction must not return NULL.
- void * functionArgument
-
RETURN ARGUMENT
- CollPtr aCollection
-
CATEGORIES
enumeration, client interface
FIRST DEFINITION
class Collection
FILES
- implementation:
-
Collection.C
Index
- NAME
-
- TEMPLATE
-
- SPECIFIERS
-
- DESCRIPTION
-
- ARGUMENTS
-
- RETURN ARGUMENT
-
- CATEGORIES
-
- FIRST DEFINITION
-
- FILES
-
This document was created by
man2html,
using the manual pages.
Time: 00:40:31 GMT, March 30, 2022